package org.subject.dao;

import org.subject.entity.Article;

import java.util.List;
import java.util.Map;

public interface ArticleMapper {
    int deleteByPrimaryKey(Long articleId);

    int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(Long articleId);

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKeyWithBLOBs(Article record);

    int updateByPrimaryKey(Article record);

    List<Article> selectListArticle();

    /**
     * 根据查询条件查询文本列表，即发布的竞赛信息
     *
     * @return 返回 Message 集合
     */
    List<Article> queryArticleList(Map<String, Object> parameter);

    int queryArticleCount(Map<String, Object> parameter);
}